package com.ldw.oauth2.server.mapper;

import com.ldw.oauth2.server.domain.TbPermission;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.MyMapper;

import java.util.List;

/**
* 
* <p>Title: TbPermissionMapper</p>
* <p>Description: </p>
* @author: dwLiu
* @date: 2020/3/17 13:37
*/
public interface TbPermissionMapper extends MyMapper<TbPermission> {
    /**
     * 根据用户ID查询权限
     * @param userId
     * @return
     */
    List<TbPermission> selectByUserId(@Param("userId") Long userId);
}